import { MockMethod } from 'vite-plugin-mock';
import { adapter } from '../_util';

const userInfo = [
  {
    id: '11231231',
    qymc: '扬子石化',
    zdwxyxx: '一级',
    name: 'pinky-pig',
    userid: '00000001',
    email: 'test@gmail.com',
    signature: '海纳百川，有容乃大',
    introduction: '微笑着，努力着，欣赏着',
    country: 'China',
    address: 'Nanjing City',
  },
  {
    id: '1123123234231',
    qymc: '扬子石化wqe',
    zdwxyxx: '四级',
    name: 'pinky-pig',
    userid: '00000001',
    email: 'test@gmail.com',
    signature: '海纳百川，有容乃大',
    introduction: '微笑着，努力着，欣赏着',
    country: 'China',
    address: 'Nanjing City',
  },
  {
    id: '34234',
    qymc: '扬子石化3',
    zdwxyxx: '三级',
    name: 'pinky-pig',
    userid: '00000001',
    email: 'test@gmail.com',
    signature: '海纳百川，有容乃大',
    introduction: '微笑着，努力着，欣赏着',
    country: 'China',
    address: 'Nanjing City',
  },
  {
    id: '112312312',
    qymc: '扬子石化2',
    zdwxyxx: '一级',
    name: 'pinky-pig',
    userid: '00000001',
    email: 'test@gmail.com',
    signature: '海纳百川，有容乃大',
    introduction: '微笑着，努力着，欣赏着',
    country: 'China',
    address: 'Nanjing City',
  },
  {
    id: '11231231323',
    qymc: '扬子石化123',
    zdwxyxx: '二级',
    name: 'pinky-pig',
    userid: '00000001',
    email: 'test@gmail.com',
    signature: '海纳百川，有容乃大',
    introduction: '微笑着，努力着，欣赏着',
    country: 'China',
    address: 'Nanjing City',
  },
  {
    id: '112312313424',
    qymc: '扬子石化热污染',
    zdwxyxx: '三级',
    name: 'pinky-pig',
    userid: '00000001',
    email: 'test@gmail.com',
    signature: '海纳百川，有容乃大',
    introduction: '微笑着，努力着，欣赏着',
    country: 'China',
    address: 'Nanjing City',
  },
];

export default [
  {
    url: '/mock/fetchList',
    timeout: 1000,
    method: 'get',
    response: () => {
      return adapter(userInfo)
    },
  },
] as MockMethod[];
